import 'package:mc_card/model/shequ/banner_model.dart';

///
/// 精选专题 对象
///
class SubjectModel {
  final String columnHeadings;
  final int feedLocation;
  final List<BannerModel> feedSelection;

  SubjectModel({this.columnHeadings, this.feedLocation, this.feedSelection});

  factory SubjectModel.fromJson(Map<String, dynamic> json) {
    var localNavListJson = json['feedSelection'] as List;
    List<BannerModel> bannerList = localNavListJson.map((i) => BannerModel.fromJson(i)).toList();

    return SubjectModel(
        columnHeadings: json['columnHeadings'], feedLocation: json['feedLocation'], feedSelection: bannerList);
  }
}
